package com.ruoyi.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.SrvServiceformMapper;
import com.ruoyi.order.domain.SrvServiceform;
import com.ruoyi.order.service.ISrvServiceformService;

/**
 * 服务单
Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-29
 */
@Service
public class SrvServiceformServiceImpl implements ISrvServiceformService 
{
    @Autowired
    private SrvServiceformMapper srvServiceformMapper;

    /**
     * 查询服务单

     * 
     * @param srvSfcode 服务单
ID
     * @return 服务单

     */
    @Override
    public SrvServiceform selectSrvServiceformById(String srvSfcode)
    {
        return srvServiceformMapper.selectSrvServiceformById(srvSfcode);
    }

    /**
     * 查询服务单
列表
     * 
     * @param srvServiceform 服务单

     * @return 服务单

     */
    @Override
    public List<SrvServiceform> selectSrvServiceformList(SrvServiceform srvServiceform)
    {
        return srvServiceformMapper.selectSrvServiceformList(srvServiceform);
    }

    /**
     * 新增服务单

     * 
     * @param srvServiceform 服务单

     * @return 结果
     */
    @Override
    public int insertSrvServiceform(SrvServiceform srvServiceform)
    {
        return srvServiceformMapper.insertSrvServiceform(srvServiceform);
    }

    /**
     * 修改服务单

     * 
     * @param srvServiceform 服务单

     * @return 结果
     */
    @Override
    public int updateSrvServiceform(SrvServiceform srvServiceform)
    {
        return srvServiceformMapper.updateSrvServiceform(srvServiceform);
    }

    /**
     * 批量删除服务单

     * 
     * @param srvSfcodes 需要删除的服务单
ID
     * @return 结果
     */
    @Override
    public int deleteSrvServiceformByIds(String[] srvSfcodes)
    {
        return srvServiceformMapper.deleteSrvServiceformByIds(srvSfcodes);
    }

    /**
     * 删除服务单
信息
     * 
     * @param srvSfcode 服务单
ID
     * @return 结果
     */
    @Override
    public int deleteSrvServiceformById(String srvSfcode)
    {
        return srvServiceformMapper.deleteSrvServiceformById(srvSfcode);
    }
}
